package com.youkeda.yikao.web.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author ：xiong
 * @date ：Created in 2019/10/7 22:51
 * @description：EmailCode
 * @modified By：
 */
@Documented
//知道执行的类
@Constraint(validatedBy = EmailCodeValidator.class)
@Target({ElementType.METHOD,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface EmailCode {
    String message() default "验证码验证失败";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
